﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace PhoneAssistant
{
    /// <summary>
    /// MainWindow.xaml 的交互逻辑
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }

        /// <summary>
        /// 鼠标左键按下拖动窗口
        /// </summary>
        /// <param name="sender">事件发送者</param>
        /// <param name="e">路由事件</param>
        private void Window_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            this.DragMove();
        }

        /// <summary>
        /// 最小化
        /// </summary>
        /// <param name="sender">消息发送者</param>
        /// <param name="e">路由事件</param>
        private void min_button_Click(object sender, RoutedEventArgs e)
        {
            this.WindowState = WindowState.Minimized;
        }

        /// <summary>
        /// 关闭
        /// </summary>
        /// <param name="sender">消息发送者</param>
        /// <param name="e">路由事件</param>
        private void close_button_Click(object sender, RoutedEventArgs e)
        {
            Close();
        }

        /// <summary>
        /// 打开演示界面
        /// </summary>
        /// <param name="sender">事件发送者</param>
        /// <param name="e">路由事件</param>
        private void phone_watch_button_Click(object sender, RoutedEventArgs e)
        {
            WindowPhoneWatch window = new WindowPhoneWatch();
            window.Show();
        }
        /// <summary>
        /// 打开实验室界面
        /// </summary>
        /// <param name="sender">事件发送者</param>
        /// <param name="e">路由事件</param>
        private void beaker_button_Click(object sender, RoutedEventArgs e)
        {
            WindowPhoneBeaker window = new WindowPhoneBeaker();
            window.Show();
        }
    }


}
